package com.shawn.example.mvvmdemo.login.ui.component

import android.content.Context
import android.util.AttributeSet
import android.widget.LinearLayout
import com.google.android.material.textfield.TextInputEditText
import com.jetpack.mvvm.lib.binding.ext.viewBind
import com.shawn.example.mvvmdemo.login.databinding.ViewLoginAccountPwdInputBinding

class AccountPwdView @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : LinearLayout(context, attrs, defStyleAttr) {

    private val binding: ViewLoginAccountPwdInputBinding by viewBind()

    init {
        orientation = VERTICAL
    }

    val etUsername: TextInputEditText = binding.etUsername
    val etPassword: TextInputEditText = binding.etPassword
}